
import request from '@/utils/request'

// 应收管理
export const accReceivable = (params) => {
  return request({
    url:'/acc/receivable',
    method:'get',
    params
  })
}

// 应付-发货单绑定发票
export const accBindBuyInvoice = (data) => {
  return request({
    url:'/acc/bindBuyInvoice',
    method:'post',
    data
  })
}

// 发货单绑定发票
export const accBindInvoice = (data) => {
  return request({
    url:'/acc/bindInvoice',
    method:'post',
    data
  })
}

// 预收管理
export const accPreReceivable = (params) => {
  return request({
    url:'/acc/pre_received',
    method:'get',
    params
  })
}

// 新增预收
export const accAddReceive = (params) => {
  return request({
    url:'/acc/addReceive',
    method:'get',
    params
  })
}

//付款
export const accPay = (params) => {
  return request({
    url:'/acc/pay',
    method:'get',
    params
  })
}

// 应付
export const accCope = (params) => {
  return request({
    url:'/acc/cope',
    method:'get',
    params
  })
}

// 预付管理
export const accPrepayment = (params) => {
  return request({
    url:'/acc/prepayment',
    method:'get',
    params
  })
}

// 应付-付款
export const accBuy = (params) => {
  return request({
    url:'/acc/buy',
    method:'get',
    params
  })
}

// 应收管理-导出
export const accExport1 = (data) => {
  return request({
    url:'/acc/export1',
    method:'post',
    responseType: 'blob',
    data
  })
}

// 应收管理-明细导出
export const accDetail1Export = (data) => {
  return request({
    url:'/acc/detail1Export',
    method:'post',
    responseType: 'blob',
    data
  })
}

// 应付管理-导出
export const accExport2 = (data) => {
  return request({
    url:'/acc/export2',
    method:'post',
    responseType: 'blob',
    data
  })
}

// 应付管理-明细导出
export const accDetail2Export = (data) => {
  return request({
    url:'/acc/detail2Export',
    method:'post',
    responseType: 'blob',
    data
  })
}



